package com.yiya.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.yiya.bean.Car;
import com.yiya.model.CarExample;
import com.yiya.model.CarModel;

public interface CarMapper {
	int countByExample(CarExample example);

	int deleteByExample(CarExample example);

	int deleteByPrimaryKey(Integer id);

	int insert(Car record);

	int insertSelective(Car record);

	List<Car> selectByExample(CarExample example);

	Car selectByPrimaryKey(Integer id);

	int updateByExampleSelective(@Param("record") Car record,
			@Param("example") CarExample example);

	int updateByExample(@Param("record") Car record,
			@Param("example") CarExample example);

	int updateByPrimaryKeySelective(Car record);

	int updateByPrimaryKey(Car record);

	List<Car> selectByModel(CarModel record);

	int countByModel(CarModel record);
	
	List<Car> selectAllByModel(CarModel record);

}
